/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package lineage.ui.function.window.main;

import lineage.ui.L1Panel;

/**
 * 用于放置聊天框切换按钮的面板.
 * 
 * @version 2014年2月13日下午7:46:21
 * @author jrwz
 */
public final class L1PanelButtonSwitchBoxChat extends L1Panel {
    private static final long serialVersionUID = 1107170305199158390L;

    /**
     * 静态初始化器，由JVM来保证线程安全.
     */
    private static class Holder {
        static L1PanelButtonSwitchBoxChat instance = new L1PanelButtonSwitchBoxChat();
    }

    /**
     * 取得该类的实例.
     */
    public static L1PanelButtonSwitchBoxChat getInstance() {
        return Holder.instance;
    }

    private L1PanelButtonSwitchBoxChat() {
        // 要设置的部分
        _x = 8;
        _y = 25;
        _width = 798;
        _height = 35;
        setOpaque(false); // 设置为透明
        // end

        init(true);
    }

    @Override
    protected void add() {
        // 在面板上增加按钮
        add(L1ButtonBoxSystemMessage.getInstance()); // 系统
        add(L1ButtonBoxChatGeneral.getInstance()); // 一般聊天
        add(L1ButtonBoxChatAll.getInstance()); // 全体聊天
        add(L1ButtonBoxChatSecret.getInstance()); // 秘语聊天
        add(L1ButtonBoxChatParty.getInstance()); // 组队聊天
        add(L1ButtonBoxChatClan.getInstance()); // 血盟聊天
    }
}